package com.bing.beans;

/**
 * Created by kaibb on 14-7-23.
 */
public class Child extends Parent {
    static {
        System.out.println("child static 初始化1");
    }

    {
        num = 20;
        System.out.println("child 内部初始化1:" + num);
    }

    public static int num = 5;

    public final static String abc = "abc";

    static {
        num = 15;
        System.out.println("child static 初始化2 num:" + num);

    }

    {
        num = 10;
        System.out.println("child 内部初始化2:" + num);
    }

    public Child() {
        num = 30;
        System.out.println("child 构造函数 num: " + num);
    }
}
